import re


finger = [{
    'id': "Discuz",
    'description': '通用的社区论坛软件系统',
    'version': lambda g: re.search(r'Discuz! (X[0-9\.]+)', g('robots.txt').text).group(1),
    'match': lambda g: 'robots.txt for Discuz! X' in g('robots.txt').text
}, {
    'id': 'QSCMS',
    'description': '骑士CMS',
    'version': '',
    'match': lambda g: 'qscms' in g('/').text or 'QSCMS' in g('/').text or g('/').header('X-Powered-By') == 'QSCMS'
}, {
    'id': '致远OA',
    'description': '',
    'version': '',
    'match': lambda g: '/seeyon/USER-DATA/IMAGES/LOGIN/login.gif' in g('').text or '/seeyon/common/' in g('').text
}, {
    'id': '致远OA M3 Server',
    'description': '',
    'version': '',
    'match': lambda g: 'M3 Server' in g('').html('title')
}, {
    'id': '致远OA M1 Server',
    'description': '',
    'version': '',
    'match': lambda g: 'M1-Server' in g('').html('title')
}, {
    'id': 'ECShop',
    'description': '',
    'version': '',
    'match': lambda g: 'ECS_ID' in g('').header('Set-Cookie')
}, {
    'id': '',
    'description': '',
    'version': '',
    'match': lambda g: False
}, {
    'id': '',
    'description': '',
    'version': '',
    'match': lambda g: False
}, {
    'id': '',
    'description': '',
    'version': '',
    'match': lambda g: False
}, {
    'id': '',
    'description': '',
    'version': '',
    'match': lambda g: False
}, {
    'id': '',
    'description': '',
    'version': '',
    'match': lambda g: False
}, {
    'id': '',
    'description': '',
    'version': '',
    'match': lambda g: False
}, {
    'id': '',
    'description': '',
    'version': '',
    'match': lambda g: False
}, {
    'id': '',
    'description': '',
    'version': '',
    'match': lambda g: False
}, {
    'id': '',
    'description': '',
    'version': '',
    'match': lambda g: False
}, {
    'id': '',
    'description': '',
    'version': '',
    'match': lambda g: False
}, {
    'id': '',
    'description': '',
    'version': '',
    'match': lambda g: False
}, {
    'id': '',
    'description': '',
    'version': '',
    'match': lambda g: False
}, {
    'id': '',
    'description': '',
    'version': '',
    'match': lambda g: False
}, {
    'id': '',
    'description': '',
    'version': '',
    'match': lambda g: False
}, {
    'id': '',
    'description': '',
    'version': '',
    'match': lambda g: False
}, {
    'id': '',
    'description': '',
    'version': '',
    'match': lambda g: False
}, {
    'id': '',
    'description': '',
    'version': '',
    'match': lambda g: False
}, {
    'id': '',
    'description': '',
    'version': '',
    'match': lambda g: False
}, {
    'id': '',
    'description': '',
    'version': '',
    'match': lambda g: False
}, {
    'id': '',
    'description': '',
    'version': '',
    'match': lambda g: False
}, {
    'id': '',
    'description': '',
    'version': '',
    'match': lambda g: False
}, {
    'id': '',
    'description': '',
    'version': '',
    'match': lambda g: False
}, {
    'id': '',
    'description': '',
    'version': '',
    'match': lambda g: False
}, {
    'id': '',
    'description': '',
    'version': '',
    'match': lambda g: False
}, {
    'id': '',
    'description': '',
    'version': '',
    'match': lambda g: False
}, {
    'id': '',
    'description': '',
    'version': '',
    'match': lambda g: False
}, {
    'id': '',
    'description': '',
    'version': '',
    'match': lambda g: False
}, {
    'id': '',
    'description': '',
    'version': '',
    'match': lambda g: False
}]